home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d13
/
query.arc
/
QUERY.DOC
< prev
next >
Wrap
Text File
|
1991-04-24
|
535b
|
22 lines
To use Query.Com:
in a batch file, type the command Query followed by a prompt,
then a redirect symbol and where to redirect it to.
EX: Query What is your favorit color > color.bat
The system will ask the question and put the answer into
color.bat. Color.bat will include the statement
Set ask= (color you chose)
You can then use the if statement to act upon it.
Example of how to use:
Query What is your name? > temp.bat
Call temp.bat
Echo Good morning, %ask%
if %ask% == "Lee" echo hi boss
del temp.bat